{% extends 'base.html' %}
{% block title %}
<title>密码修改</title>
{% endblock %}
{% block body %}

   <div class="row">
                <div class="col-sm-6 col-sm-offset-3">
                    <form action="" method="post">
                       {% csrf_token %}
                      <div class="form-group">
                          {{ upf.password.label_tag }}
                          {{ upf.password }}

                      </div>
                        <div class="form-group">
                          {{ upf.password1.label_tag }}
                          {{ upf.password1 }}

                      </div>
                        <div class="form-group">
                          {{ upf.password2.label_tag }}
                          {{ upf.password2 }}

                      </div>
                        {% if error %}
                        <div class="form-group">
                            <p class="text-danger">{{ error }}</p>
                        </div>
                        {% endif %}
                      <button type="submit" class="btn btn-default">确认修改</button>

                    </form>


                </div>
            </div>

{% endblock %}